#ifndef UBUTTON
#define UBUTTON
#include "../stdafx.h"
#include "UControl.h"
#include "../UCallBack.h"

class TButton: public TControl
{
protected:
	bool Pressed;
	void DrawFocusStippleLine();
public:
	TButton(TRectangle rect);
	virtual void MouseDown	(int X, int Y, uint8 button);
	virtual void MouseUp	(int X, int Y, uint8 button);
	virtual void MouseClick	();
	virtual void MouseLeave	();
	virtual void MouseMove	(int X, int Y, int mstate);
	function<void()> onClick;
};

#endif
